#include "Blockhouse.h"

Blockhouse::Blockhouse()
	:GameObject()
{

}

Blockhouse::Blockhouse(int id, float posX, float posY, int width, int height)
	: GameObject(id,posX,posY,width,height)
{
	init();
}

Blockhouse::~Blockhouse()
{

}

void Blockhouse::init()
{
	m_sprite = ResourceManager::getInstance()->cS_blockhouse;
}

void Blockhouse::update(float time)
{
	updateVec(time);
	moveEnity();
	setAnimation();
	setRectCollsion();
}

void Blockhouse::setAnimation()
{

}

void Blockhouse::setRectCollsion()
{

}

void Blockhouse::draw()
{
	m_sprite->update();
	D3DXVECTOR2 pos = m_camera->getPointTransform(m_posX, m_posY);
	m_sprite->draw(m_spriteHandler, pos.x, pos.y, false);
}

void Blockhouse::destroy()
{

}
